from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
	url(r'^login/(?P<from_url>(\w+))', 'bazy.views.login'),
	url(r'^users/get/all', 'bazy.api.users.getAll'),
	url(r'^users/set/', 'bazy.api.users.setById'),
	url(r'^users/del/', 'bazy.api.users.deleteById'),
	url(r'^users/get/by/id', 'bazy.api.users.getById'),
	url(r'^users/add/', 'bazy.api.users.add'),
	url(r'^hools/create/$', 'bazy.api.hools.create'),
	url(r'^hools/create/b64', 'bazy.api.hools.createb64'),
	url(r'^hools/edit/', 'bazy.api.hools.edit'),
	url(r'^hools/get/all/', 'bazy.api.hools.getAll'),
	url(r'^hools/get/$','bazy.api.hools.get'),
	url(r'^hools/delete/','bazy.api.hools.delete'),
	url(r'^hools/get/by/event_id','bazy.api.hools.getByEventId'),
	url(r'^hools/add/event','bazy.api.hools.addHooliganToEvent'),
	url(r'^session/get_token/', 'bazy.api.session.getCrsfToken'),
	url(r'^session/login/', 'bazy.api.session.login'),
	url(r'^session/logout/', 'bazy.api.session.logout'),
	url(r'^hools/img/(?P<from_url>(.*))','bazy.api.hools.getImage'),
	url(r'^events/get/all','bazy.api.events.getAll'),
	url(r'^events/get/by/id','bazy.api.events.getById'),
	url(r'^events/get/by/hooligan_id','bazy.api.events.getByHooliganId'),
	url(r'^events/create/','bazy.api.events.create'),
	url(r'^events/edit/','bazy.api.events.edit'),
	url(r'^events/delete/','bazy.api.events.delete'),
	url(r'^events/add/hooligan/','bazy.api.events.addHooliganToEvent'),
	url(r'^offense/create/','bazy.api.offense.create'),
	url(r'^offense/get/all','bazy.api.offense.getAll'),
	url(r'^offense/get/','bazy.api.offense.get'),
	url(r'^offense/edit/','bazy.api.offense.edit'),
	url(r'^offense/delete/','bazy.api.offense.delete'),
)
